<?php
namespace LPCISII\PHP2012Bundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class ImagesType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder->add('fichier', 'file')
                ->add('titre');
    }

    public function getDefaultOptions(array $options)
    {
        return array(
            'data_class' => 'LPCISII\PHP2012Bundle\Entity\Images',
        );
    }

    public function getName()
    {
        return 'images';
    }
}